﻿@{
    ViewBag.Title = "系统管理";
    Layout = "~/Views/Shared/_Areas_Layout.cshtml";
}
@using MvcShoppingMall.HtmlHelper
@model PageList<MvcShoppingMall.Model.order>

<div class="wrap" style="background-color:#fcfcf9">
    <div class="page-title">
        <span class="modular fl"><i class="order"></i><em>订单列表</em></span>
    </div>
    <div class="operate">
        <form>
            <img src="~/Areas/Admin/Content/images/icon_search.gif" />
            <input type="text" class="textBox length-long" placeholder="输入订单编号或收件人姓名..." />
            <select class="inline-select">
                <option>未付款</option>
                <option>已付款</option>
            </select>
            <input type="button" value="查询" class="tdBtn" />
        </form>
    </div>
    <table class="list-style Interlaced">
        <tr>
            <th>订单编号</th>
            <th>下单时间</th>
            <th>收件人</th>
            <th>订单金额</th>
            <th>订单状态</th>
            <th>操作</th>
        </tr>
        <tr>
            <td>
                <input type="checkbox" />
                <a id="order_detail" href="###">2015041803225</a>
            </td>
            <td class="center">
                <span class="block">DeatGhost</span>
                <span class="block">2015-04-18 12:00</span>
            </td>
            <td width="450">
                <span class="block">张三[18309275673]</span>
                <address>陕西省西安市未央区255号</address>
            </td>
            <td class="center">
                <span><i>￥</i><b>58.00</b></span>
            </td>
            <td class="center">
                <span>未付款</span>
            </td>
            <td class="center">
                <a id="order_detail1" href="###" class="inline-block" title="查看订单"><img src="~/Areas/Admin/Content/images/icon_view.gif" /></a>
                <a class="inline-block" title="删除订单"><img src="~/Areas/Admin/Content/images/icon_trash.gif" /></a>
            </td>
        </tr>
    </table>
    <!-- BatchOperation -->
    <div style="overflow:hidden;">
        <!-- Operation -->
        <div class="BatchOperation fl">
            <input type="button" value="配货" class="btnStyle" />
            <input type="button" value="删除订单" class="btnStyle" />
        </div>
        <!-- turn page -->
        <div class="turnPage center fr">
            <ul class="pagination">
                @if (Model != null && Model.Count > 0)
                {

                   @Html.Pager(Model);

                }
            </ul>
        </div>
    </div>
</div>
<script>
    $("#order_detail").click(function () {
        location.href = "order_detail";
    });
    $("#order_detail1").click(function () {
        location.href = "order_detail";
    });
</script>